﻿
using Mrc.Application;
using Mrc.Domain.Entitity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Mrc.Domain.Module.ConfigCenter
{
    public interface IConfigMasterService : IServiceKey
    {
        /// <summary>
        /// 添加主节点
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task Add(ConfigMaster model);

        /// <summary>
        /// 设置启用 关闭
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="isUse"></param>
        /// <returns></returns>
        Task SetUse(long Id, bool isUse);

        /// <summary>
        /// 删除主节点
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task Delete(long Id);

    }
}
